// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

.el-picker-panel {
  margin-top: 0px !important;
}

// dropdown
.el-dropdown-menu,
.el-picker-panel,
.el-popper {
  .popper__arrow {
    display: none;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}


.el-button {
  padding: .6rem 1.25rem;
  line-height: 1.125;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
}

.menu-inner {
  padding: 0 0.875rem !important;

  &>div {
    width: 100%;
  }
}

.layout-menu-collapsed:not(.layout-menu-hover) {
  .sidebar-title {
    opacity: 0;
  }

  .menu-inner {
    .el-menu-item {
      span {
        opacity: 0;
      }
    }

    .el-submenu {
      .el-submenu__title {
        span {
          opacity: 0;
        }
      }

      &.is-opened {
        .el-menu {
          display: none;
        }
      }
    }
  }
}


.el-menu {
  border-right: 0px;

  >.el-menu-item {
    padding: 0.5rem 1rem;
  }

  .svg-icon {
    flex-grow: 0;
    flex-shrink: 0;
    margin-right: 0.5rem;
    font-size: 1.375rem;
    vertical-align: middle !important;
    width: 22px !important;
    height: 22px !important;
  }

  .el-menu-item {
    height: 38.05px;
    line-height: 38.05px;
    margin: 0.125rem 0;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    padding-left: 0px !important;
    display: flex;
    align-items: center;
    color: #6f6b7d;
    padding: 0.5rem 1rem !important;

    &.is-active {
      background: linear-gradient(72.47deg, #7367f0 22.16%, rgba(115, 103, 240, 0.7) 76.47%);
      box-shadow: 0px 2px 6px 0px rgba(115, 103, 240, 0.48);
      color: #fff !important;
    }

    .el-submenu {
      .el-menu-item {
        height: 38.05px;
        line-height: 38.05px;
        margin: 0 0.875rem;
        border-radius: 0.375rem;
        font-size: 0.9375rem;
      }
    }
  }
}

.el-menu .el-submenu__title {
  display: flex;
  align-items: center;
  // height: 38.05px;
  // line-height: 38.05px;
  // border-radius: 0.375rem;
  // font-size: 0.9375rem;
  // // margin:0.125rem 0.875rem;
  // padding-left:0px !important;
  // padding:0rem 1rem !important;
  // color:#6f6b7d;
  // .el-menu-item{
  //   padding-left:0px;
  // }
}

.layout-page,.el-dialog__wrapper {
  margin: 0 auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;

  // .el-form-item__label {
  //   font-weight:500;
  //   font-size: 0.9375rem;
  //   color:#3b4056;
  // }

  .mb1 {
    margin-bottom: 1rem;
  }

  .el-input .el-input__inner,
  .el-range-editor.el-input__inner {
    // line-height: 1.5rem;
    // border-radius: 0.375rem;
    // transition: .2s all linear;
    // font-size: 0.9375rem;
    // height: inherit;

    &:focus {
      color: #6f6b7d;
      background-color: #fff;
      border-color: #7367f0;
      outline: 0;
      box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
    }
  }

  .el-button {
    padding: .6rem 1.25rem;
    line-height: 1.125;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
    border-radius: 0.375rem;
  }

  .el-select .el-input__inner,
  .el-input .el-input__inner,
  .el-date-editor {
    height: 38px;
    font-size: 0.9375rem;
    line-height: 38px;
    border-radius: 0.375rem;
    // height:
    // height:1.5rem;
    // line-height:5rem;
    // padding:.6rem 1.25rem;
  }

  .el-date-editor .el-range-input {
    font-size: 0.9375rem;
  }

  .el-select .el-input.is-focus .el-input__inner {
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
  }

  // .el-table .el-table__header-wrapper th,
  // .el-table .el-table__fixed-header-wrapper th {
  //   background: #fff;

  //   font-weight: 500;
  // }

  .el-select-dropdown {
    box-shadow: 0 0.25rem 1rem rgba(165, 163, 174, 0.45);
    padding: 0.5rem 0rem;
    margin-top: 0px;
    left: 0px !important;

    .popper__arrow {
      display: none;
    }

    .el-scrollbar {
      .el-select-dropdown__wrap {
        .el-scrollbar__view {
          padding: 0px;
        }
      }
    }

    .el-select-dropdown__item {
      margin: 0.25rem 0.5rem;
      width: calc(100% - 1rem);
      border-radius: 0.375rem;
      display: flex;
      align-items: center;
      padding: 0px;
      font-size: 0.9375rem;

      span {
        display: inline-block;
        width: 100%;
        padding: 0.42rem 1rem;
        line-height: 1.375rem;
      }

      &.selected {
        background: #7367f0;
        color: #fff;
        font-weight: 400;
      }

      &:not(.selected):hover {
        span {
          background-color: rgba(255, 255, 255, 0.15);
          color: #7367f0;
        }
      }
    }
  }

  .el-checkbox__inner {
    width: 18px;
    height: 18px;
    border-radius:0.375rem;
    border-color:#676b7b;
    &:after {
      left: 4.75px;
      top: 2px;
    }
  }

  .el-checkbox__label {
    color: #6f6b7d;
    font-weight: 500;
  }

  .el-table {
    margin-top:1rem;
    th {
      padding: 0px;
      color: #3b4056;
      height: inherit;
      background: #f5f5f7;
      border-top: 1px solid #dfe6ec;
      .cell {
        text-transform: uppercase;
        font-size: 0.8125rem;
        letter-spacing: 1px;
        line-height: 1.47;
        color: #3b4056;
        padding: 0.88rem 1.25rem;
      }
    }

    th,
    tr td {
      border-color: #dbdade;
    }

    tr {
      // height: 59.75px;

      &:hover {
        td {
          background-color: initial;
        }
      }

      td {
        padding: 0px;

        .cell {
          padding:.7813rem 1.25rem;
          font-size: 0.9375rem;
        }
      }
    }
  }

  .el-card {
    // min-height: 30vh;
    border-radius: 0.375rem;
    // box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
    box-shadow: 0 .25rem .875rem 0 rgba(38, 43, 67, .16);
    border: none;

    .el-card__body {
      padding: 0px;
    }
  }

  .box-card {
    .el-card__body {
      padding: 20px !important;
    }
  }

  .pagination-container {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;

    .el-pagination {
      padding: 0px;
      position: relative;

      .el-pagination__total {
        height: 38.04px;
        line-height: 38.04px;
        font-size: 14px;
      }

      .btn-prev,.btn-quicknext,.btn-quickprev,
      .btn-next {
        // padding: 0.745rem;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        height: 38.04px;
        line-height: 38.04px;
        min-width: calc(2.38155rem + 0px);
        font-weight: 400;
        transform: scale(0.98);
        font-size: 0.9375rem;
        background: rgba(75, 70, 92, 0.08);
        color: #3b4056;
        border-radius: 0.375rem;

        &:not(:disabled):hover {
          color: #3b4056;
          background: rgba(75, 70, 92, 0.16);
          border-color: rgba(75, 70, 92, 0.16);
        }
      }

      .el-pager {
        .number {
          transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
          padding: 0.745rem;
          min-width: calc(2.38155rem + 0px);
          line-height: 1;
          font-weight: 400;
          transform: scale(0.98);
          font-size: 0.9375rem;
          background: rgba(75, 70, 92, 0.08);
          color: #3b4056;
          border-radius: 0.375rem;
          height: inherit;

          &:not(:first-child) {
            margin-left: 0.25rem;
          }

          &:not(.active):hover {
            color: #3b4056;
            background: rgba(75, 70, 92, 0.16);
            border-color: rgba(75, 70, 92, 0.16);
          }
        }
      }

      .el-pagination__jump {
        height: auto;
        line-height: inherit;

        .el-pagination__editor {
          height: 38.04px;
          margin: 0 .5rem;

          .el-input .el-input__inner {
            // padding:0.745rem;
            height: 38.04px;
            line-height: 38.04px;
          }
        }
      }
    }
  }

  .flex {
    display: flex;
    align-items: center;
  }

  .flex-end {
    justify-content: flex-end;
  }

  .el-checkbox__inner {
    border-width: 2px;
  }
}

.card-datatable {
  padding-bottom: 1rem;
}
.g-row-opt{

}

.pop-item-wrap {
  border: 1px solid #e6ebf5;
  // min-width: 14rem;
  box-shadow: 0 0.25rem 1rem rgba(165, 163, 174, 0.45);

  .us-basic {
    display: flex;
    align-items: center;
    width: 100%;

    .avatar {
      position: relative;
      margin-right: 1rem;
      height: 2.375rem;

      img {
        width: 2.375rem;
        height: 2.375rem;
      }
    }

    .bs-labels {
      span {
        display: block;
        line-height: 1.375;

        &:first-child {
          font-weight: 500;
        }

        &:last-child {
          color: #a5a3ae;
        }
      }
    }
  }

  .el-dropdown-menu__item {
    margin: 0.25rem 0rem;
    border-radius: 0.375rem;
    color: #3b4056;
    user-select: none;
    display: flex;
    align-items: center;

    &:hover {
      background-color: inherit;
    }

    a {
      width: 100%;
      display: flex;
      align-items: center;
      border-radius: 0.375rem;
      line-height: 1.375;
      padding: 0.42rem .5rem;
      margin-top: .2rem;
      font-size: 0.9375rem;
      color:#3b4056;

      &:hover {
        background: #f1f0fe;
        color: #8f85f3;
      }

      &.active,
      &:active {
        background: #7367f0;
        color: #fff;
      }
    }

    &.el-dropdown-menu__item--divided {
      border: none;

      &:before {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 1px !important;
        background: #dbdade;
        margin: 0px;
      }
    }
  }
}

// @media (min-width: 1200px) {
//   .navbar {
//     left:16.25rem;
//   }
// }
// @media (min-width: 1400px) {
//   .app-container,.navbar {
//     max-width: 1440px
//   }
// }
// @media (min-width: 992px) {
//   .app-container{
//     padding-right: 1.5rem;
//     padding-left: 1.5rem;
//   }
// }
